﻿using AutoMapper;
using PeiYue.Model.Dto.Tms;
using PeiYue.Model.Models.Tms;
using System;
using System.Collections.Generic;
using System.Text;

namespace PeiYue.AutoMapper
{
    public class TmsProfile : Profile
    {
        /// <summary>
        /// 配置构造函数，用来创建关系映射
        /// </summary>
        public TmsProfile()
        {
            CreateMap<UpdateRouterDto, RouterDao>().ReverseMap();
            CreateMap<RouterDao, SearchRouterResponseDto>().ReverseMap();
            CreateMap<UpdateVehicleDto, VehicleDao>().ReverseMap();
            CreateMap<VehicleDao, SearchVehicleResponseDto>();
            CreateMap<UpdateDriverDto, DriverDao>().ReverseMap();
            CreateMap<DriverDao, SearchDriverResponseDto>().ReverseMap();
            CreateMap<TaskHeaderDao, SearchTaskHeaderResponseDto>().ReverseMap();
            CreateMap<TaskDetailDao, SearchTaskDetailResponseDto>().ReverseMap();
            CreateMap<UpdateRouterShopDto, RouterShopDao>().ReverseMap();
            CreateMap<RouterShopDao, SearchRouterShopResponseDto>().ReverseMap();

            CreateMap<RouterFeeDao, RouterFeeDto>().ReverseMap(); 
        }
    }
}
